package br.com.pim.testes;

import java.text.DecimalFormat;

public class Arredondamento {

	public static void main(String[] args) {

		double roundTwoDecimals = 12314.1231231321;
		DecimalFormat twoDForm = new DecimalFormat("#.##");
		System.out.println(Double.valueOf(twoDForm.format(roundTwoDecimals)));
		
		
		
	}
}
